package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 家庭成员对象 property_family
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
public class PropertyFamily extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 成员ID */
    private Long familyId;

    /** 所属业主 */
    @Excel(name = "所属业主")
    private Long ownerId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 关系：SPOUSE/CHILD/PARENT/OTHER */
    @Excel(name = "关系：SPOUSE/CHILD/PARENT/OTHER")
    private String relation;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    public void setFamilyId(Long familyId) 
    {
        this.familyId = familyId;
    }

    public Long getFamilyId() 
    {
        return familyId;
    }

    public void setOwnerId(Long ownerId) 
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId() 
    {
        return ownerId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setRelation(String relation) 
    {
        this.relation = relation;
    }

    public String getRelation() 
    {
        return relation;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("familyId", getFamilyId())
            .append("ownerId", getOwnerId())
            .append("name", getName())
            .append("relation", getRelation())
            .append("phone", getPhone())
            .append("idCard", getIdCard())
            .toString();
    }
}
